package com.cctv.video.api;


import com.cctv.video.network.mvp.BaseModel;
import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.*;

import java.util.HashMap;

/**
 * 作者：created by LP_TREAM on 2020/11/26 19:44
 * 邮箱：806875201@qq.com
 */
public interface BaseApiServer {
    /**
     * 文件上传管理
     *
     * @return
     */
    @Streaming
    @Multipart
    @POST("/antique/file/upload")
    Observable<BaseModel<Object>> getUpload(@Part MultipartBody.Part parts);

    /**
     * /getCode
     * 获取短信验证码
     *
     * @param params
     * @return
     */
    @GET("/getCode")
    Observable<BaseModel<Object>> getCode(@QueryMap HashMap<String, String> params);
}
